package com.hh.flow.domain.tables;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;

/**
* 流程实例表tableDef
* default_columns中不能放ignore、isLarge、isLogicDelete
* @author hh
* @date 2023-05-02
*/
public class FlowInstanceTableDef extends TableDef {

    public static final FlowInstanceTableDef flow_instance = new FlowInstanceTableDef("flow_instance");

    public QueryColumn id = new QueryColumn(this, "id");
    public QueryColumn business_id = new QueryColumn(this, "business_id");
    public QueryColumn node_code = new QueryColumn(this, "node_code");
    public QueryColumn node_name = new QueryColumn(this, "node_name");
    public QueryColumn flow_status = new QueryColumn(this, "flow_status");
    public QueryColumn flow_version = new QueryColumn(this, "flow_version");
    public QueryColumn user_code = new QueryColumn(this, "user_code");
    public QueryColumn user_name = new QueryColumn(this, "user_name");
    public QueryColumn definition_id = new QueryColumn(this, "definition_id");
    public QueryColumn create_by = new QueryColumn(this, "create_by");
    public QueryColumn create_time = new QueryColumn(this, "create_time");
    public QueryColumn update_by = new QueryColumn(this, "update_by");
    public QueryColumn update_time = new QueryColumn(this, "update_time");
    public QueryColumn del_flag = new QueryColumn(this, "del_flag");

    public QueryColumn[] default_columns = new QueryColumn[]{ id, business_id, node_code, node_name, flow_status, flow_version, user_code, user_name, definition_id, create_by, create_time, update_by, update_time, };
    public QueryColumn[] all_columns = new QueryColumn[]{ id, business_id, node_code, node_name, flow_status, flow_version, user_code, user_name, definition_id, create_by, create_time, update_by, update_time, del_flag};

    public FlowInstanceTableDef(String tableName) {
        super(tableName);
    }
}
